package com.mswork.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mswork.common.annotation.Excel;
import com.mswork.common.core.domain.BaseEntity;

/**
 * 工单货物对象 tb_store_order_cargo
 *
 * @author ylq
 * @date 2025-03-05
 */
public class StoreOrderCargo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（自增）
     */
    private Long cargoId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String cargoName;

    /**
     * 产品数量
     */
    @Excel(name = "产品数量")
    private Long cargoNum;

    /**
     * 关联工单ID
     */
    private Long orderId;

    /**
     * 剩余未入库数量
     */
    private Long cargoInputNum;

    /**
     * 剩余未出库数量
     */
    private Long cargoOutNum;

    /**
     * 差值
     */
    private Long cargoNumDiff;

    /**
     * 0无效,1有效
     */
    private String status;

    public void setCargoId(Long cargoId) {
        this.cargoId = cargoId;
    }

    public Long getCargoId() {
        return cargoId;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoNum(Long cargoNum) {
        this.cargoNum = cargoNum;
    }

    public Long getCargoNum() {
        return cargoNum;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public Long getCargoInputNum() {
        return cargoInputNum;
    }

    public void setCargoInputNum(Long cargoInputNum) {
        this.cargoInputNum = cargoInputNum;
    }

    public Long getCargoOutNum() {
        return cargoOutNum;
    }

    public void setCargoOutNum(Long cargoOutNum) {
        this.cargoOutNum = cargoOutNum;
    }

    public Long getCargoNumDiff() {
        return cargoNumDiff;
    }

    public void setCargoNumDiff(Long cargoNumDiff) {
        this.cargoNumDiff = cargoNumDiff;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("cargoId", getCargoId())
                .append("cargoName", getCargoName())
                .append("cargoNum", getCargoNum())
                .append("orderId", getOrderId())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
